<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
    textarea{
        width:500px;
    }
</style>
</head>
<body>

	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('AdminSetting/add')}">基础配置</a></li></a></li>
		</ul>
		<form action="{:U('AdminSetting/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>顶部信息</th>
							<td>
								<textarea name="site_top">{$item.site_top}</textarea>
								<span class="form-required">*</span>
							</td>
						</tr>
                        <tr>
                            <th>版权信息</th>
                            <td>
                                <textarea name="site_banquan">{$item.site_banquan}</textarea>
                                <span class="form-required">*</span>
                            </td>
                        </tr>
                        <tr>
                            <th>备案信息</th>
                            <td>
                                <textarea name="site_beian">{$item.site_beian}</textarea>
                                <span class="form-required">*</span>
                            </td>
                        </tr>
                        <tr>
                            <th>网站名称</th>
                            <td>
                               <input type="text" name="webname" value="{$item.webname}"/>
                                <span class="form-required">*</span>
                            </td>
                        </tr>
                        <tr>
                            <th><b>ICO图标</b></th>

                            <td>
                                <div style="text-align: left;">
                                    <input type="hidden" name="header_ico" id="header_ico" value="{$item.header_ico}">
                                    <a href="javascript:upload_one_image('图片上传','#header_ico');">
                                        <if condition="empty($item['header_ico'])">
                                            <img src="__TMPL__Public/assets/images/default-thumbnail.png" id="header_ico-preview" width="135" style="cursor: hand"/>
                                            <else />
                                            <img src="{:sp_get_image_preview_url($item['header_ico'])}" id="header_ico-preview" width="135" style="cursor: hand"/>
                                        </if>
                                    </a>
                                    <input type="button" class="btn btn-small" onclick="$('#header_ico-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#header_ico').val('');return false;" value="取消图片">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th><b>logo</b></th>

                            <td>
                                <div style="text-align: left;">
                                    <input type="hidden" name="logo" id="logo" value="{$item.logo}">
                                    <a href="javascript:upload_one_image('图片上传','#logo');">
                                        <if condition="empty($item['logo'])">
                                            <img src="__TMPL__Public/assets/images/default-thumbnail.png" id="logo-preview" width="135" style="cursor: hand"/>
                                            <else />
                                            <img src="{:sp_get_image_preview_url($item['logo'])}" id="logo-preview" width="135" style="cursor: hand"/>
                                        </if>
                                    </a>
                                    <input type="button" class="btn btn-small" onclick="$('#logo-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#logo').val('');return false;" value="取消图片">
                                </div>
                            </td>
                        </tr>

					</table>
				</div>

			</div>
			<div class="form-actions">
                <input type="hidden" name="id" value="{$item.id}"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="{:U('AdminSetting/add')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	</body>
</html>